package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 水电设备对象 t_iot_device
 *
 * @author ruoyi
 * @date 2023-05-31
 */
@TableName(value ="t_iot_device")
@Data
public class TIotDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 水电设备ID */
    @Excel(name = "水电设备ID")
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备位置 */
    @Excel(name = "设备名称")
    private String tierNaem;

    /** 设备位置 */
    @Excel(name = "设备Id")
    private String tierNaemId;

    /** 设备状态 0有效 1无效 */
    @Excel(name = "设备状态 0有效 1无效")
    private Integer status;

    /** 空间id */
    @Excel(name = "空间id")
    private Long baseSpaceLocationId;

    /** 网关id */
    @Excel(name = "网关id")
    private Integer iotGatewayId;

    /** 1电表  2水表 3消费机 */
    @Excel(name = "1电表  2水表 3消费机")
    private Long deviceType;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal price;

    /** 电量 */
    @Excel(name = "电量")
    private BigDecimal electric;

    /** 是否删除 0未删除 1删除 */
    private Integer isDelete;

    /** 创建时间 */
    private Date createDate;

    /** 修改时间 */
    private Date modifyDate;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String equipmentNumber;


    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getElectric() {
        return electric;
    }

    public void setElectric(BigDecimal electric) {
        this.electric = electric;
    }

    public String getTierNaemId() {
        return tierNaemId;
    }

    public void setTierNaemId(String tierNaemId) {
        this.tierNaemId = tierNaemId;
    }

    public String getTierNaem() {
        return tierNaem;
    }

    public void setTierNaem(String tierNaem) {
        this.tierNaem = tierNaem;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setBaseSpaceLocationId(Long baseSpaceLocationId)
    {
        this.baseSpaceLocationId = baseSpaceLocationId;
    }

    public Long getBaseSpaceLocationId()
    {
        return baseSpaceLocationId;
    }
    public void setIotGatewayId(Integer iotGatewayId)
    {
        this.iotGatewayId = iotGatewayId;
    }

    public Integer getIotGatewayId()
    {
        return iotGatewayId;
    }
    public void setDeviceType(Long deviceType)
    {
        this.deviceType = deviceType;
    }

    public Long getDeviceType()
    {
        return deviceType;
    }
    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setModifyDate(Date modifyDate)
    {
        this.modifyDate = modifyDate;
    }

    public Date getModifyDate()
    {
        return modifyDate;
    }
    public void setEquipmentNumber(String equipmentNumber)
    {
        this.equipmentNumber = equipmentNumber;
    }

    public String getEquipmentNumber()
    {
        return equipmentNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("status", getStatus())
            .append("baseSpaceLocationId", getBaseSpaceLocationId())
            .append("iotGatewayId", getIotGatewayId())
            .append("deviceType", getDeviceType())
            .append("isDelete", getIsDelete())
            .append("createDate", getCreateDate())
            .append("modifyDate", getModifyDate())
            .append("equipmentNumber", getEquipmentNumber())
            .toString();
    }
}
